﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PROD_SCRAPPING_ORDER
// * CreateDate    : 2012/7/27 18:37:58
// * Creater       : CodeSmith
// * LastChangeDate: 2012/7/27 18:37:58
// * LastChanger   : 2012/7/27 18:37:58
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class ProdScrappingOrderTable : TableInfo
    {
        public const string C_TableName = "PROD_SCRAPPING_ORDER";

        public const string C_ID = "ID";
        public const string C_ORDER_CODE = "ORDER_CODE";
        public const string C_PLAN_ORDER_ITEM_ID = "PLAN_ORDER_ITEM_ID";
        public const string C_PRODUCT_TECHNIC_ID = "PRODUCT_TECHNIC_ID";
        public const string C_PRODUCT_ID = "PRODUCT_ID";
        public const string C_QTY = "QTY";
        public const string C_REASON = "REASON";
        public const string C_ADVICE = "ADVICE";
        public const string C_CREATED_DATE = "CREATED_DATE";
        public const string C_CREATED_BY = "CREATED_BY";
        public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
        public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
        public const string C_APPROVED_DATE = "APPROVED_DATE";
        public const string C_APPROVED_BY = "APPROVED_BY";
        public const string C_STATUS = "STATUS";

        public ProdScrappingOrderTable()
        {
            _tableName = "PROD_SCRAPPING_ORDER";
        }

        protected static ProdScrappingOrderTable _current;
        public static ProdScrappingOrderTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new ProdScrappingOrderTable();

            _current.Add(C_ID, new ColumnInfo(C_ID, "Id", true, typeof(string)));
            _current.Add(C_ORDER_CODE, new ColumnInfo(C_ORDER_CODE, "OrderCode", false, typeof(string)));
            _current.Add(C_PLAN_ORDER_ITEM_ID, new ColumnInfo(C_PLAN_ORDER_ITEM_ID, "PlanOrderItemId", false, typeof(string)));
            _current.Add(C_PRODUCT_TECHNIC_ID, new ColumnInfo(C_PRODUCT_TECHNIC_ID, "ProductTechnicId", false, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID, "ProductId", false, typeof(string)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY, "Qty", false, typeof(decimal)));
            _current.Add(C_REASON, new ColumnInfo(C_REASON, "Reason", false, typeof(string)));
            _current.Add(C_ADVICE, new ColumnInfo(C_ADVICE, "Advice", false, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE, "CreatedDate", false, typeof(DateTime)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY, "CreatedBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE, "LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY, "LastModifiedBy", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE, "ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_APPROVED_BY, new ColumnInfo(C_APPROVED_BY, "ApprovedBy", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS, "Status", false, typeof(int)));

        }

        public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }

        public ColumnInfo ORDER_CODE
        {
            get { return this[C_ORDER_CODE]; }
        }

        public ColumnInfo PLAN_ORDER_ITEM_ID
        {
            get { return this[C_PLAN_ORDER_ITEM_ID]; }
        }

        public ColumnInfo PRODUCT_TECHNIC_ID
        {
            get { return this[C_PRODUCT_TECHNIC_ID]; }
        }

        public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }

        public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }

        public ColumnInfo REASON
        {
            get { return this[C_REASON]; }
        }

        public ColumnInfo ADVICE
        {
            get { return this[C_ADVICE]; }
        }

        public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }

        public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }

        public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }

        public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }

        public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }

        public ColumnInfo APPROVED_BY
        {
            get { return this[C_APPROVED_BY]; }
        }

        public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }



    }
}

